package com.ywjg.controller.jsonp;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.ywjg.model.CheckReport;
import com.ywjg.serviceimp.CheckReportService;
@RestController
@RequestMapping(value = "android/")
public class CheckReportControllerAndroid {
	@Autowired
	CheckReportService checkReportService;
	@RequestMapping(value = "checkReport")
	private CheckReport checkReport(CheckReport checkReport) {
		return checkReportService.addCheckReportInf(checkReport);
	}
	
	@RequestMapping(value = "getCheckReportInf")
	private CheckReport getCheckReportInf(int userId) {
		return checkReportService.getCheckReportInf(userId);
	}

	@RequestMapping(value = "upDateCheckReportInf")
	private CheckReport upDateCheckReportInf(CheckReport checkReport) {
		return checkReportService.upDateReportInf(checkReport);
	}
}
